bmips: huawei-hg556a-c: use nvmem for wifi eeprom
authorRosen Penev <[email protected]>
Sat, 6 Dec 2025 21:14:03 +0000 (13:14 -0800)
committerRobert Marko <[email protected]>
Mon, 8 Dec 2025 16:28:40 +0000 (17:28 +0100)
The ralink custom property is deprecated and only kept around for
byteswap capability.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21058
Signed-off-by: Robert Marko <[email protected]>
target/linux/bmips/dts/bcm6358-huawei-hg556a-c.dts

index 2c948da6d748b42d263ca1fd6594f12d66db6d99..5133e724768943ef8579a7a5125a82cf433b9e89 100644 (file)
        };
 };
 
+&cal_data {
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               cal_data_1fe00: calibration@1fe00 {
+                       reg = <0x1fe00 0x200>;
+               };
+       };
+};
+
 &pci {
        status = "okay";
 
        wifi@1,0 {
-               compatible = "pci0,0";
+               compatible = "pci1814,3062";
                reg = <0x0800 0 0 0 0>;
 
-               ralink,mtd-eeprom = <&cal_data 0x1fe00>;
-
-               nvmem-cells = <&macaddr_cfe_6a0 1>;
-               nvmem-cell-names = "mac-address";
+               nvmem-cells = <&cal_data_1fe00>, <&macaddr_cfe_6a0 1>;
+               nvmem-cell-names = "calibration", "mac-address";
        };
 };